package com.temi.iot.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author one
 * @since 2019-12-11
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_login")
@ApiModel(value="SysLogin对象", description="")
@NoArgsConstructor
@AllArgsConstructor
public class SysLogin extends Model<SysLogin> {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "用户账号")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "角色ID")
    private Integer roleId;

    @ApiModelProperty(value = "1-启动,2-禁用")
    private String bankType;

    @ApiModelProperty(hidden = true)
    private String deleteType;
    @ApiModelProperty(hidden = true)
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return null;
    }
}
